#pragma once
#include <vector>
#include "../../TmsMap/TmsMapTool.h"
#include "common/singleton.h"

class draw_flag_data_manager
{
    DECLARE_SINGLETON_CLASS(draw_flag_data_manager);

public:
    bool AddData(const MST_MAP_TOOL::Lnglat& val);
    void DeleteData(int index);
    void ClearData();

    std::vector<MST_MAP_TOOL::Lnglat>& GetDatas();
private:
    std::vector<MST_MAP_TOOL::Lnglat> m_all_datas;
};

typedef pattern::singleton<draw_flag_data_manager> sln_draw_flag_data_manager;